home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20010306-20010921 / 000144_nathan.rousseau…anetmedica.com_Thu May 17 10:24:18 EDT 2001.msg < prev    next >
Text File  |  2020-01-01  |  2KB  |  55 lines

  1. Article: 12439 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!panix!newsfeed.mathworks.com!news.maxwell.syr.edu!skynet.be!shere!louie!not-for-mail
  3. From: "Nathan Rousseau" <nathan.rousseau@planetmedica.com>
  4. Newsgroups: comp.protocols.kermit.misc
  5. Subject: fail management
  6. Date: Thu, 17 May 2001 09:58:04 +0200
  7. X-Priority: 3
  8. X-MSMail-Priority: Normal
  9. X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
  10. X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
  11. Lines: 36
  12. Message-ID: <3b03864d$0$3124$456d72a3@news.skynet.be>
  13. Organization: -= Skynet Usenet Service =-
  14. NNTP-Posting-Host: 194.78.198.82
  15. X-Trace: 990086733 reader0.news.skynet.be 3124 194.78.198.82
  16. X-Complaints-To: abuse@skynet.be
  17. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:12439
  18.  
  19. When i call a macro with macro error set to on, the macro exit when error
  20. occur but the return value of the macro seems always to be success ( even if
  21. an error occur )
  22.  
  23. DEFINE SET_MODEM_CARACTERISTIQUE {
  24.  
  25. SET MACRO ERROR ON
  26.  
  27. ...
  28.  
  29. SET PORT \%2    ; Device name
  30.  
  31. IF FAIL -
  32.     DO WRITE_IN_LOG {Unable to connect to : \%2 device} -
  33.     END 1 ERROR
  34.  
  35. ...
  36.  
  37. END 0
  38. }
  39.  
  40. I call the macro with :
  41.  
  42. DO SET_MODEM_CARACTERISTIQUE \%1 \%2 \%3
  43.  
  44. IF FAIL -
  45.     DO WRITE_IN_LOG {Unable to setup the modem to type: \%1, port \%2, speed
  46. \%3} -
  47.     END 1 ERROR
  48.  
  49. and it never go in the fail case even if for example, an other session
  50. kermit is already using the port
  51. but the macro SET_MODEM_CARACTERISTIQUE has been terminated following the
  52. error
  53.  
  54.  
  55.